<?php
class Default_Model_Tag extends Zend_Db_Table{

	protected $_name="tbltag";
	protected $_primary="id";
	protected $db;
	public function __construct(){
		parent::__construct();
		$this->db=Zend_Registry::get('connectDb');
	}
	public function getById($id){
		return $this->fetchRow('id='.$id)->toArray();
	}
	public function test(){
		echo "ndt";
	}
	public function getItem(){
		
	}
	public function getItems(){
		
	}
	public function countItems(){
		
	}
	public function countAnswer(){
		
	}
	public function saveItem(){
		
	}
	public function deleteItem($id){
		$this->delete('id=?',$id);
	}
}